package com.yao.provider.service;

import domain.User;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.stereotype.Component;
import service.UserService;

/**
 * @author yao
 */
@Service(version = "2.0"
        ,group = "B"
        , protocol = {"dubboProtocol","rmiProtocol"}
)
@Component
public class UserServiceB2Impl implements UserService {
    @Override
    public String sayHello(User user) {
        return "hello"+user.getName()+",from version:2,group:B,provider:2";
    }
}
